<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateSubbaciaRioTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" styleClass="ajustaListaMensagemErro"  layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="list"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateSubbaciaRioLabel_sbrId}" for="sbrId" />
                    <p:inputText id="sbrId" value="#{subbaciaRioController.selected.sbrId}" title="#{bundle.CreateSubbaciaRioTitle_sbrId}" required="true" requiredMessage="#{bundle.CreateSubbaciaRioRequiredMessage_sbrId}"/>
                    <h:outputLabel value="#{bundle.CreateSubbaciaRioLabel_sbrRioCd}" for="sbrRioCd" />
                    <h:selectOneMenu id="sbrRioCd" value="#{subbaciaRioController.selected.sbrRioCd}" title="#{bundle.CreateSubbaciaRioTitle_sbrRioCd}" >
                        <f:selectItems value="#{rioController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateSubbaciaRioLabel_sbrDnsCd}" for="sbrDnsCd" />
                    <h:selectOneMenu id="sbrDnsCd" value="#{subbaciaRioController.selected.sbrDnsCd}" title="#{bundle.CreateSubbaciaRioTitle_sbrDnsCd}" >
                        <f:selectItems value="#{subbaciaController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{subbaciaRioController.create}" value="#{bundle.CreateSubbaciaRioSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{subbaciaRioController.prepareList}" value="#{bundle.CreateSubbaciaRioShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateSubbaciaRioIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
